package com.power.project.model.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author mrzhao
 * @CreateDate 2024/6/26 16:16
 * @Desc TODO
 * @Version 1.0
 */
@Data
public class DepartmentSortBO {

    @ApiModelProperty(value = "移动后的父级部门 ww_depart.departid")
    @NotNull
    @NotEmpty
    private String parentId;

    @ApiModelProperty(value = "移动的部门 ww_depart.departid")
    @NotNull
    @NotEmpty
    private String curId;

    @ApiModelProperty(value = "移动后的父级部门下所有子部门的 ww_depart.departid，顺序保持移动后的顺序")
    @NotNull
    @Size(min = 1)
    private List<String> sortIds;
}
